package listener;


import model.DoorEvent;

/**
 * 该类为 门1监听接口的实现,做具体的开门,关门动作
 */
public class DoorListener1 implements DoorListener {


    @Override
    public void doorEvent(DoorEvent doorEvent) {
        if (doorEvent != null && doorEvent.getDoorState().equals("open")) {
            System.out.println("一号门打开!");
        } else {
            System.out.println("一号门关闭");
        }
    }
}
